<script setup lang="ts">
import { onMounted, reactive, ref } from "@vue/runtime-core";
import { MoreFilled } from '@element-plus/icons-vue'
</script>

<template>
  <div class="container">
    <div class="header">
      <slot name="header"></slot>
    </div>
    <div class="header-suffix">
      <el-icon>
        <MoreFilled />
      </el-icon>
      <p class="more">查看更多</p>
    </div>
    <div class="wrapper">
      <div class="img">

      </div>
      <el-card class="new">
        <template #header>
          <div class="card-header">
            <span>Card name</span>
          </div>
        </template>
        <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
        <template #footer>Footer content</template>
      </el-card>
    </div>
  </div>
</template>

<style scoped lang="less">
.container {
  width: 100%;
  height: 100%;
  position: relative;

  .header-suffix {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    .more {
      padding: 0 10px;
    }
  }

  .wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    // padding: 0 100px;
    box-sizing: border-box;

    .img {
      width: 700px;
      height: 450px;
      background-image: url(../../assets/img/bg2.jpg);
    }

    .new {
      flex: 1;
      max-height: 450px;
    }
  }
}</style>